import { defHttp } from '@/utils/http/axios';

// 获取公告列表
export const getNoticeListApi = (params: any) =>
  defHttp.get({
    url: '/face_recognition/notice/get_notices',
    params,
  });

// 新增公告
export const addNoticeApi = (data: any) =>
  defHttp.post({
    url: '/face_recognition/notice/add_notice',
    data,
  });

// 更新公告
export const putNoticeApi = (data: any) =>
  defHttp.put({
    url: '/face_recognition/notice/update_notice',
    data,
  });

// 删除公告
export const deleteNoticeApi = (NoticeID: any) =>
  defHttp.delete({
    url: '/face_recognition/notice/delete_notice/' + NoticeID,
  });
